//
//  HBNewVersionAlter.m
//  HeartBeat
//
//  Created by karong on 2023/9/8.
//

#import "HBNewVersionAlter.h"

@interface HBNewVersionAlter ()
@property (weak, nonatomic) IBOutlet UIView *mainView;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *contentLabel;
@property (weak, nonatomic) IBOutlet UIButton *cancelBtn;
@property (weak, nonatomic) IBOutlet UIButton *confirmBtn;
@end

@implementation HBNewVersionAlter

- (void)viewDidLoad {
    [super viewDidLoad];
    self.contentLabel.text = SF(@"%@", appConfig.startConfig.ios_prompt_update_txt);
}

- (IBAction)confirmAction:(id)sender {
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:KEmptyStr(appConfig.startConfig.ios_download_url)] options:@{} completionHandler:nil];
}

- (IBAction)cancelAction:(id)sender {
    [self dismiss];
}

@end
